package com.supermarket_project.utils;

import lombok.Data;

import java.util.Date;
@Data
public class Datevutils {
    public   Datevutils(Date dt)
    {
        this. year=String.format("%tY", dt);
        this. mon=String .format("%tm", dt);
        this. day=String .format("%td", dt);
        this. h=String .format("%tH", dt);
        this. m=String .format("%tM", dt);
        this. s=String .format("%tS", dt);
    }
    private String year;
    private String mon;
    private String day;
    private String h;
    private String m;
    private String s;
    public static void main(String[] args) {



        System.out.println("---------------");



    }



}

